fix p2phttp worker thread leak with deleted repository LOCKCONTENT
authorJoey Hess <joeyh@joeyh.name>
Mon, 15 Sep 2025 15:59:37 +0000 (11:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 15 Sep 2025 16:03:44 +0000 (12:03 -0400)
commit91dbcf0b56ba540a33ea5a79ed52f33e82f4f61b
treed5777b4a92a98987cfcb88049a21a5fe241aa3eb
parent38786a4e5ec2dd697d2abf1ee93a927a9e9fcf41
fix p2phttp worker thread leak with deleted repository LOCKCONTENT

p2phttp: Fix a hang that could occur when used with --directory, and a
repository in the repository got removed.

It could leak up to -J number of worker threads, but this only affected a
client trying to access the deleted repository.

It may be that this could also affect a non-deleted repository, and also
leak a worker thread, if invalid p2p protocol is sent.
CHANGELOG
P2P/Http/Server.hs
doc/todo/p2phttp_serve_multiple_repositories.mdwn
doc/todo/p2phttp_serve_multiple_repositories/comment_3_429520e5411c5785b63598ffee7dbb95._comment [new file with mode: 0644]